import { defineComponent as g, reactive as k, watch as C, toRefs as b } from "vue-demi";
const y = /-(\w)/g;
function u(e) {
  return e.replace(y, (s, t) => t.toUpperCase());
}
const x = "frog";
function F(e) {
  return e = `${x}-${e}`, [e, u(`-${e}`)];
}
function R(e) {
  return e.install = (s) => {
    const t = e.name, [i, r] = F(t);
    s.component(i, e), s.component(r, e), s.component(t, e), s.component(u(`-${t}`), e);
  }, e;
}
const p = (e) => e != null && e.startsWith("http") || e != null && e.startsWith("data:image") ? e : e ? `data:image/png;base64,${e}` : "";
var $ = function() {
  var e = this, s = e.$createElement, t = e._self._c || s;
  return t("div", {
    staticClass: "register-table"
  }, [t("table", {
    attrs: {
      cellspacing: "0",
      cellpadding: "0"
    }
  }, [e._m(0), t("tr", [t("td", [e._v("\u59D3\u540D")]), t("td", [e._v(e._s(e.registerForm.name))]), t("td", [e._v("\u6027\u522B")]), t("td", [e._v(e._s(e.registerForm.gender))]), t("td", {
    attrs: {
      rowspan: "6"
    }
  }, [t("div", {
    staticClass: "upload-img"
  }, [e.registerForm.photoBase ? t("img", {
    attrs: {
      src: e.registerForm.photoBase,
      alt: ""
    }
  }) : e._e()])])]), t("tr", [t("td", [e._v("\u4F4F\u5740")]), t("td", [e._v(e._s(e.registerForm.address))]), t("td", [e._v("\u8054\u7CFB\u7535\u8BDD")]), t("td", [e._v(e._s(e.registerForm.telephone))])]), t("tr", [t("td", [e._v("\u6CE8\u518C\u670D\u52A1\u5355\u4F4D")]), t("td", [e._v(e._s(e.registerForm.enterpriseName))]), t("td", [e._v("\u6295\u8BC9\u7535\u8BDD")]), t("td", [e._v(e._s(e.registerForm.complaintPhone))])]), t("tr", [t("td", [e._v("\u8EAB\u4EFD\u8BC1\u53F7")]), t("td", {
    attrs: {
      colspan: "3"
    }
  }, [e._v(e._s(e.registerForm.cardNo))])]), t("tr", [t("td", [e._v("\u4ECE\u4E1A\u8D44\u683C\u8BC1\u53F7")]), t("td", {
    attrs: {
      colspan: "3"
    }
  }, [e._v(e._s(e.registerForm.certificateCode))])]), t("tr", [t("td", [e._v("\u8F66\u8F86\u4FE1\u606F")]), t("td", {
    attrs: {
      colspan: "3"
    }
  }, [e._v(e._s(e.registerForm.vehicleNo))])]), t("tr", [t("td", [e._v("\u7533\u8BF7\u79CD\u7C7B")]), t("td", {
    attrs: {
      colspan: "4"
    }
  }, [t("div", {
    staticClass: "materialbox flex justify-center"
  }, [t("input", {
    attrs: {
      id: "radio1",
      type: "radio",
      name: "radio"
    },
    domProps: {
      checked: e.registerForm.registerType === 1
    }
  }), t("label", {
    attrs: {
      for: "radio1"
    }
  }, [e._v("\u6CE8\u518C")]), e._v("\xA0\xA0\xA0\xA0 "), t("input", {
    attrs: {
      id: "radio2",
      type: "radio",
      name: "radio"
    },
    domProps: {
      checked: e.registerForm.registerType === 2
    }
  }), t("label", {
    attrs: {
      for: "radio2"
    }
  }, [e._v("\u5EF6\u7EED\u6CE8\u518C")])])])]), t("tr", [t("td", [e._v("\u6750\u6599\u6E05\u5355")]), t("td", {
    attrs: {
      colspan: "2"
    }
  }, [t("div", {
    staticClass: "materialbox"
  }, [t("div", {
    staticClass: "title"
  }, [e._v("\u6CE8\u518C\u8D44\u6599\u6E05\u5355\uFF1A")]), t("div", {
    staticClass: "flex justify-center flex-col"
  }, e._l(e.registerMaterials, function(i, r) {
    return t("div", {
      key: r,
      staticClass: "flex",
      staticStyle: {
        "margin-left": "10px",
        "align-items": "baseline"
      },
      attrs: {
        label: i.label
      }
    }, [t("input", {
      staticClass: "flex flex-start",
      attrs: {
        type: "checkbox",
        id: `checktype1${r}`
      },
      domProps: {
        checked: e.registerForm.registerMaterials && e.registerForm.registerMaterials.includes(i.value)
      }
    }), t("label", {
      attrs: {
        for: `checktype1${r}`
      }
    }, [e._v("\xA0" + e._s(i.label))])]);
  }), 0)])]), t("td", {
    attrs: {
      colspan: "2"
    }
  }, [t("div", {
    staticClass: "materialbox"
  }, [t("div", {
    staticClass: "title"
  }, [e._v("\u5EF6\u7EED\u6CE8\u518C\u8D44\u6599\u6E05\u5355\uFF1A")]), t("div", {
    staticClass: "flex justify-center flex-col"
  }, e._l(e.continueRegisterMaterials, function(i, r) {
    return t("div", {
      key: r,
      staticClass: "flex",
      staticStyle: {
        "margin-left": "10px",
        "align-items": "baseline"
      },
      attrs: {
        label: i.label
      }
    }, [t("input", {
      staticClass: "flex flex-start",
      attrs: {
        type: "checkbox",
        id: `checktype2${r}`
      },
      domProps: {
        checked: e.registerForm.continueRegisterMaterials && e.registerForm.continueRegisterMaterials.includes(i.value)
      }
    }), t("label", {
      attrs: {
        for: `checktype2${r}`
      }
    }, [e._v("\xA0" + e._s(i.label))])]);
  }), 0)])])]), e._m(1), t("tr", [t("td", [e._v("\u7BA1\u7406\u90E8\u95E8\u610F\u89C1")]), t("td", {
    attrs: {
      colspan: "4"
    }
  }, [t("div", {
    staticClass: "suggest"
  }, [t("p", {
    staticClass: "title"
  }, [e._v("\u7ECF\u5BA1\u6838\uFF1A")]), t("div", {
    staticClass: "item"
  }, [t("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: e.checked,
      expression: "checked"
    }],
    staticClass: "flex flex-start",
    attrs: {
      type: "checkbox",
      id: "checkaudit"
    },
    domProps: {
      checked: Array.isArray(e.checked) ? e._i(e.checked, null) > -1 : e.checked
    },
    on: {
      change: function(i) {
        var r = e.checked, l = i.target, d = !!l.checked;
        if (Array.isArray(r)) {
          var o = null, a = e._i(r, o);
          l.checked ? a < 0 && (e.checked = r.concat([o])) : a > -1 && (e.checked = r.slice(0, a).concat(r.slice(a + 1)));
        } else
          e.checked = d;
      }
    }
  }), t("label", {
    attrs: {
      for: "checkaudit"
    }
  }, [e._v("\xA0\u540C\u610F\u6CE8\u518C")])]), t("div", {
    staticClass: "item"
  }, [t("input", {
    directives: [{
      name: "model",
      rawName: "v-model",
      value: e.checked,
      expression: "checked"
    }],
    staticClass: "flex flex-start",
    attrs: {
      type: "checkbox",
      id: "checkaudit1"
    },
    domProps: {
      checked: Array.isArray(e.checked) ? e._i(e.checked, null) > -1 : e.checked
    },
    on: {
      change: function(i) {
        var r = e.checked, l = i.target, d = !!l.checked;
        if (Array.isArray(r)) {
          var o = null, a = e._i(r, o);
          l.checked ? a < 0 && (e.checked = r.concat([o])) : a > -1 && (e.checked = r.slice(0, a).concat(r.slice(a + 1)));
        } else
          e.checked = d;
      }
    }
  }), t("label", {
    attrs: {
      for: "checkaudit1"
    }
  }, [e._v("\xA0\u4E0D\u540C\u610F\u6CE8\u518C\uFF0C\u7406\u7531:")])]), e._m(2)])])]), t("tr", [t("td", {
    attrs: {
      rowspan: "2"
    }
  }, [e._v("\u8BC1\u4EF6\u6CE8\u518C\u4FE1\u606F")]), t("td", {
    attrs: {
      colspan: "4"
    }
  }, [t("div", {
    staticClass: "register-info"
  }, [e._v("\u4ECE\u4E1A\u8D44\u683C\u8BC1\u6CE8\u518C\u6709\u6548\u671F\uFF1A" + e._s(e.registerForm.registerEndDate))])])]), t("tr", [t("td", {
    attrs: {
      colspan: "4"
    }
  }, [t("div", {
    staticClass: "register-info"
  }, [t("span", [e._v("\u7ECF\u529E\u4EBA(\u7B7E\u5B57)")]), t("span", {
    staticClass: "beginDate"
  }, [e._v("\u65E5\u671F\uFF1A" + e._s(e.registerForm.registerBeginDate))])])])])])]);
}, N = [function() {
  var e = this, s = e.$createElement, t = e._self._c || s;
  return t("caption", [t("h2", {
    staticClass: "register-title"
  }, [e._v("\u56DB\u5DDD\u7701\u51FA\u79DF\u8F66\u9A7E\u9A76\u5458\u4ECE\u4E1A\u8D44\u683C\u6CE8\u518C\u767B\u8BB0\u8868")])]);
}, function() {
  var e = this, s = e.$createElement, t = e._self._c || s;
  return t("tr", [t("td", [e._v("\u627F\u8BFA")]), t("td", {
    attrs: {
      colspan: "4"
    }
  }, [t("div", {
    staticClass: "promise"
  }, [t("div", {
    staticClass: "content"
  }, [e._v("\u672C\u4EBA\u627F\u8BFA\u4EE5\u4E0A\u6240\u6709\u5185\u5BB9\u771F\u5B9E\u3001\u6709\u6548\uFF0C\u5E76\u627F\u62C5\u7531\u6B64\u4EA7\u751F\u7684\u6CD5\u5F8B\u8D23\u4EFB\u3002")]), t("div", {
    staticClass: "sign"
  }, [t("span", [e._v("\u672C\u4EBA\u7B7E\u5B57\uFF1A")]), t("span", [e._v("\u65E5\u671F\uFF1A")])])])])]);
}, function() {
  var e = this, s = e.$createElement, t = e._self._c || s;
  return t("div", [t("div", {
    staticClass: "textR",
    staticStyle: {
      padding: "10px 50px 0 0"
    }
  }, [e._v("(\u76D6 \u7AE0)")]), t("div", {
    staticClass: "textR",
    staticStyle: {
      padding: "10px 50px 5px 0"
    }
  }, [e._v(" \u5E74\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u6708\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u65E5 ")])]);
}];
function M(e, s, t, i, r, l, d, o) {
  var a = typeof e == "function" ? e.options : e;
  s && (a.render = s, a.staticRenderFns = t, a._compiled = !0), i && (a.functional = !0), l && (a._scopeId = "data-v-" + l);
  var n;
  if (d ? (n = function(c) {
    c = c || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !c && typeof __VUE_SSR_CONTEXT__ < "u" && (c = __VUE_SSR_CONTEXT__), r && r.call(this, c), c && c._registeredComponents && c._registeredComponents.add(d);
  }, a._ssrRegister = n) : r && (n = o ? function() {
    r.call(
      this,
      (a.functional ? this.parent : this).$root.$options.shadowRoot
    );
  } : r), n)
    if (a.functional) {
      a._injectStyles = n;
      var m = a.render;
      a.render = function(h, v) {
        return n.call(v), m(h, v);
      };
    } else {
      var _ = a.beforeCreate;
      a.beforeCreate = _ ? [].concat(_, n) : [n];
    }
  return {
    exports: e,
    options: a
  };
}
const P = [
  { value: 1, label: "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u53CA\u590D\u5370\u4EF6" },
  {
    value: 2,
    label: "\u52B3\u52A8\u5408\u540C\u3001\u8058\u7528\u534F\u8BAE\u6216\u8005\u7ECF\u8425\u5408\u540C\u539F\u4EF6\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u4E0D\u63D0\u4F9B\uFF09"
  },
  { value: 3, label: "\u9053\u8DEF\u8FD0\u8F93\u8BC1\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u9700\u63D0\u4F9B\uFF09" }
], T = [
  { value: 1, label: "\u4ECE\u4E1A\u8D44\u683C\u8BC1\u53CA\u590D\u5370\u4EF6" },
  {
    value: 2,
    label: "\u52B3\u52A8\u5408\u540C\u3001\u8058\u7528\u534F\u8BAE\u6216\u8005\u7ECF\u8425\u5408\u540C\u539F\u4EF6\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u4E0D\u63D0\u4F9B\uFF09"
  },
  { value: 3, label: "\u7EE7\u7EED\u6559\u80B2\u8BB0\u5F55" },
  { value: 4, label: "\u9053\u8DEF\u8FD0\u8F93\u8BC1\u53CA\u590D\u5370\u4EF6\uFF08\u9A7E\u9A76\u672C\u4EBA\u51FA\u79DF\u8F66\u4ECE\u4E8B\u7ECF\u8425\u6D3B\u52A8\u7684\u4E2A\u4F53\u7ECF\u8425\u8005\u9700\u63D0\u4F9B\uFF09" }
], A = g({
  name: "registerTable",
  props: {
    childData: {
      type: Object,
      default: () => {
      }
    }
  },
  setup(e, { root: s }) {
    const t = k({
      checked: !1,
      registerForm: {
        name: "",
        cardNo: "",
        gender: "",
        address: "",
        photoBase: "",
        telephone: "",
        vehicleNo: "",
        registerType: "",
        enterpriseName: "",
        complaintPhone: "",
        certificateCode: "",
        registerMaterials: [],
        continueRegisterMaterials: [],
        registerBeginDate: "",
        registerEndDate: ""
      }
    });
    return C(
      () => e.childData,
      (i) => {
        for (let r in t.registerForm)
          r === "gender" ? t.registerForm[r] = i[r] === 1 ? "\u7537" : "\u5973" : r === "photoBase" ? t.registerForm[r] = p(i[r]) : t.registerForm[r] = i[r];
      },
      {
        deep: !0,
        immediate: !0
      }
    ), {
      getImage: p,
      ...b(t),
      registerMaterials: P,
      continueRegisterMaterials: T
    };
  }
}), f = {};
var D = /* @__PURE__ */ M(
  A,
  $,
  N,
  !1,
  E,
  "143772a1",
  null,
  null
);
function E(e) {
  for (let s in f)
    this[s] = f[s];
}
const S = /* @__PURE__ */ function() {
  return D.exports;
}(), w = R(S);
export {
  w as default
};
